package com.baseproject.datasource;

/**
 * 网络请求的额外可配置参数,有默认值
 */

public class ConfigParams {

    /**
     * 请求数据类型，为了统一Repository获取流程，除了REQUEST_TYPE_LIST之外，默认返回的size都是1
     */
    public final static int REQUEST_TYPE_LIST = 0;
    public final static int REQUEST_TYPE_OBJECT = 1;
    public final static int REQUEST_TYPE_JSON_ARRAY = 2;
    public final static int REQUEST_TYPE_JSON_OBJECT = 3;
    int requestType = REQUEST_TYPE_OBJECT;


    boolean cacheIsDirty = false;
    boolean fromLocalOnly = false;
    boolean fromRemoteOnly = false;

}
